<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('message/crashreport/flexigrid') ?>',
                    colModel: [
						{display: '<?= translate('MESSAGE_CRASHREPORT_CHANNEL') ?>', name: 'channel', width: '100', process: formatSearch},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_TRACKID') ?>', name: 'trackid', width: '200', process: formatSearch},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_EVENTKEY') ?>', name: 'eventID', width: '80'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_EVENTVALUE') ?>', name: 'eventvalue', width: '150'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_INSERTTIME') ?>', name: 'inserttime', width: '150'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_PLATID') ?>', name: 'platform', width: '100'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_GAMEID') ?>', name: 'gameid', width: '100'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_ZONEID') ?>', name: 'zoneid', width: '100'},                        
                        {display: '<?= translate('MESSAGE_CRASHREPORT_OSVER') ?>', name: 'osver', width: '100'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_ACCOUNT') ?>', name: 'accountID', width: '100', process: formatSearch},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_STARTTIME') ?>', name: 'starttime', width: '100'},                        
                        {display: '<?= translate('MESSAGE_CRASHREPORT_NETTYPE') ?>', name: 'netWorkType', width: '100'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_SDKVER') ?>', name: 'sdkver', width: '100'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_GAMEVER') ?>', name: 'gamever', width: '100'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_IP') ?>', name: 'ip', width: '100', process: formatSearch},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_DEVICEID') ?>', name: 'deviceid', width: '100'},                        
                        {display: '<?= translate('MESSAGE_CRASHREPORT_DEVICEID') ?>', name: 'deviceID', width: '100'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_DEVICENAME') ?>', name: 'deviceName', width: '100'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_CHANNEL') ?>', name: 'channel', width: '100'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_CHANNELUSERID') ?>', name: 'channelUserID', width: '100'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_CRASHLOG') ?>', name: 'crashlog', width: '300'},
                        {display: '<?= translate('MESSAGE_CRASHREPORT_RETRYTIMES') ?>', name: 'retrytimes', width: '100'},
                        {display: '<?= translate('MANAGE') ?>', name: 'id', width: '150', sortable: false, process: formatOp}, 
                    ],
                    buttons: [
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
                        //{name: 'delete', displayname: "<?= translate('DEL') ?>", title: "<?= translate('DEL') ?>", bclass: 'delete'},
                    ],
                    <!-- searchitems: [{display: '<?= translate('ROLE_NAME') ?>', name: 'B.name'}], -->
                }));
                SG.admin = $.extend(SG.admin, {
                    del_url: '<?= site_url("message/crashreport/del/") ?>',
                });
            });
        </script>
    </body>
</html>